package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.ISimuatorStatusInfoDao;
import org.jsbd.boss.domian.SimuatorStatusInfo;
import org.springframework.stereotype.Repository;

@Repository("simuatorStatusInfoDao")
public class SimuatorStatusInfoDaoImpl extends CrackBaseDao implements ISimuatorStatusInfoDao{

	@SuppressWarnings("unchecked")
	@Override
	public List<SimuatorStatusInfo> getSimulatorList(SimuatorStatusInfo simuatorStatusInfo) {
		return super.queryForList("qy_simulator_status_info.select_simulator_status_info_list", simuatorStatusInfo);
	}

	@Override
	public Integer getSimulatorListCount(SimuatorStatusInfo simuatorStatusInfo) {
		return super.queryForCount("qy_simulator_status_info.select_simulator_status_info_page_count", simuatorStatusInfo);
	}

	@Override
	public void updateByUuid(List<SimuatorStatusInfo> simLists) {
		super.batchUpdate("qy_simulator_status_info.update_simulator_status_info", simLists);
	}

	@Override
	public String findCabinetByIp(String clientIp) {
		return (String) super.queryForObject("qy_simulator_status_info.select_cabinet_info_by_ip", clientIp);
	}

	@Override
	public void updateStatusByUuid(List<SimuatorStatusInfo> simLists) {
		super.batchUpdate("qy_simulator_status_info.update_simulator_status_to_kx", simLists);
	}
	@Override
	public void deleteOfflineByUuid(List<String> uuidList) {
		super.delete("qy_simulator_status_info.deleteOfflineByUuid", uuidList);
	}
	@Override
	public void deleteOfflineByBizVer(String bizVer) {
		super.delete("qy_simulator_status_info.deleteOfflineByBizVer", bizVer);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<SimuatorStatusInfo> selectByModel(String model) {
		return super.queryForList("qy_simulator_status_info.selectByModel", model);
	}
	
	
}
